<?php
session_start();  
 
session_destroy(); 

unset($_SESSION["tipUporabnika"]);
unset($_SESSION["uporabnik"]);
$_SESSION = array();

$streznik = $_SERVER["HTTP_HOST"];  
			
$pot = rtrim(dirname($_SERVER["PHP_SELF"]), "/\\");

$mesto = $streznik."".$pot;

header( "Location: http://".$mesto."/index.php" );


?>